//
//  RIButtonItem.h
//  Shibui
//
//  Created by Gang.Wang on 12-5-16.
//  Copyright (c) 2012年 yuike. All rights reserved.
//
/*
 YButtonItem *cancelItem = [YButtonItem item];
 cancelItem.label = @"No";
 cancelItem.action = ^
 {
 // this is the code that will be executed when the user taps "No"
 // this is optional... if you leave the action as nil, it won't do anything
 // but here, I'm showing a block just to show that you can use one if you want to.
 };
 
 YButtonItem *deleteItem = [YButtonItem item];
 deleteItem.label = @"Yes";
 deleteItem.action = ^
 {
 // this is the code that will be executed when the user taps "Yes"
 // delete the object in question...
 [context deleteObject:theObject];
 };
 
 */
#import <Foundation/Foundation.h>

@interface YButtonItem : NSObject
{
    NSString *label;
    void (^action)();
}
@property (retain, nonatomic) NSString *label;
@property (copy, nonatomic) void (^action)();
+(id)item;
+(id)itemWithLabel:(NSString *)inLabel;
@end

